package com.atguigu07.encapsulation.exer3;

/**
 * ClassName: Employee
 * Package: com.atguigu07.encapsulation.exer3
 * Description:
 *      声明员工类Employee，
 *
 * -     包含属性：姓名、性别、年龄、电话，属性私有化
 *
 *  -    提供get/set方法
 *
 *      - 提供String getInfo()方法
 * @Author BuTang
 * @Create 2023/3/1 10:39
 * @Version 1.0
 */
public class Employee {
    /**
     * 属性
     */
    private String name;
    private char gender;
    private int age;
    private String tel;

    public void setName(String name1){
        name =name1;
    }
    public String getName(){
        return name;
    }

    public void setGender(char gender1){
        gender  = gender1;
    }
    public char getGender(){
        return gender;
    }

    public void setAge(int age1){
        age =age1;
    }
    public int getAge(){
        return age;
    }

    public void setTel(String tel1){
        tel = tel1;
    }
    public String getTel(){
        return tel;
    }
    public String getInfo(){
        return name +"\t"+gender+"\t"+age+"\t"+tel;
    }

}
